package com.oom;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: OOM测试
 * VM arsg: -Xms20M -Xmx20M -XX:+HeapDumpOnOutOfMemoryError
 * @author: yuchi_huang (yuchi_huang@sui.com)
 * @date: 18/3/15
 * @modified By:
 */
public class HeapOOM {

    static class OOMObject{

    }

    public static void main(String[] args) {

        List<OOMObject> list = new ArrayList<OOMObject>();
        while(true){
            list.add(new OOMObject());
        }


    }

}
